#!/usr/bin/env python3
# -*- coding: utf-8 -*-

'Web服务器简单实例，声明路由方式[倾向于django]'

from aiohttp import web

async def hello(request):
    return web.Response(text="Hello,world")

if __name__ == '__main__':
    print('http://localhost:8080')
    app = web.Application()
    app.add_routes([web.get('/',hello)])
    web.run_app(app)
